package cn.edu.zust.se.service.file.mapper;

import cn.edu.zust.se.api.entity.Folder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FolderMapper extends BaseMapper<Folder> {
    @Select("select * from t_folder where id = #{id} and del_flag = 0")
    Folder selectUndeletedFolderById(Long id);

    @Select("select * from t_folder where id = #{id} and del_flag = 2")
    Folder selectDeletedFolderById(Long id);
}
